package com.chuantou.yuba.api.to;

import java.util.List;

import com.google.gson.annotations.SerializedName;

public class NewsDetailTO {
	// 资讯正文详情，第一页才会返回
	@SerializedName("news_detail")
	private NewsContentTO detail;
	// 评论内容
	@SerializedName("news_comments")
	private List<NewsCommentTO> comments;
	// 当前页码
	@SerializedName("p")
	private int currentPage;
	// 评论总数
	@SerializedName("news_comments_total")
	private int commentCount;

	@SerializedName("fav")
	private int favorited;

	public NewsContentTO getDetail() {
		return detail;
	}

	public void setDetail(NewsContentTO detail) {
		this.detail = detail;
	}

	public List<NewsCommentTO> getComments() {
		return comments;
	}

	public void setComments(List<NewsCommentTO> comments) {
		this.comments = comments;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public int getFavorited() {
		return favorited;
	}

	public void setFavorited(int favorited) {
		this.favorited = favorited;
	}

	/**
	 * 是否已经收藏
	 * 
	 * @return
	 */
	public boolean isFavorited() {
		return this.favorited == 1;
	}

}
